{extend name="adminheader:header"/}
{block name="content"}
	<body class="gray-bg">
    <div class="wrapper wrapper-content animated fadeInRight">
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                	<div class="ibox-title">
                        <h5>修改展会</h5>
                    </div>
                    <div class="ibox-content">
                        <form action="{:url('/admin/Exhibition/editPost')}" method="post" class="form-horizontal js-ajax-form m-t">
                            <input type="hidden" name="id" value="{$list.id}" />
                            <div class="form-group">
                                <label class="col-sm-3 control-label">展会内容<span class="form-required">*</span></label>
                                <div class="col-md-6 col-sm-10">
                                    <script id="content" name="e_content" type="text/plain">{$list.e_content|htmlspecialchars_decode|stripslashes}</script>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">状态<span class="form-required">*</span></label>
                                <div class="col-md-6 col-sm-10">
                                   <input type="radio" name="e_status" id="inlineRadio1" value="1" {$list['e_status'] ==1 ?'checked':''} style="cursor: pointer;margin-right:5px"/>未发布&nbsp;&nbsp;&nbsp;&nbsp;
                                   <input type="radio" name="e_status" id="inlineRadio2" value="2" {$list['e_status'] ==2 ?'checked':''} style="cursor: pointer;margin-right:5px"/>发布&nbsp;&nbsp;&nbsp;&nbsp;
                                   <input type="radio" name="e_status" id="inlineRadio3" value="3" {$list['e_status'] ==3 ?'checked':''} style="cursor: pointer;margin-right:5px"/>过期
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">添加时间<span class="form-required">*</span></label>
                                <div class="col-md-6 col-sm-10">
                                    <input class="form-control js-bootstrap-datetime" type="text" name="addtime" value="{:date('Y-m-d H:i',$list['addtime'])}">
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="col-sm-4 col-sm-offset-3">
                                    <button class="btn btn-primary js-ajax-submit" type="submit">保存</button>
                                    <a class="btn btn-default" href="{:url('/admin/Exhibition/index')}">返回</a>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
<script src="/admin/js/admin.js"></script>
 <!-- 配置文件 -->
<script type="text/javascript" src="/admin/js/ueditor/ueditor.config.js"></script>
<!-- 编辑器源码文件 -->
<script type="text/javascript" src="/admin/js/ueditor/ueditor.all.js"></script>
<!-- 实例化编辑器 -->
<script type="text/javascript">
    var ue = UE.getEditor('content');
</script>
{/block}